package com.iss.ljx.department.repository;

import com.iss.ljx.department.entity.DepartmentEntity;
import com.iss.ljx.mybatis.flexigrid.PagingBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentDao {
    List<DepartmentEntity> selectAll(@Param("paging") PagingBean paging);

    DepartmentEntity selectOneByBranchName(@Param("branchName") String branchName);

    Integer Total();

    void deleteById(@Param("depUuid") String depUuid);

    void insert(@Param("depUuid") String depUuid, @Param("organUuid") String organUuid,
                @Param("branchName") String branchName, @Param("belongCenter") String belongCenter,
                @Param("modifierId") String modifierId, @Param("modTime") String modTime,
                @Param("remark") String remark);

    void update(@Param("depUuid") String depUuid, @Param("organUuid") String organUuid,
                @Param("branchName") String branchName, @Param("belongCenter") String belongCenter,
                @Param("modifierId") String modifierId, @Param("modTime") String modTime,
                @Param("remark") String remark);


}

